#include <stdlib.h>
#include <stdio.h>
#include <SDL/SDL.h>
#include <sdl_mixer.h>
#include "fonction.h"


int main(int argc, char *argv[])
{
    SDL_Surface *ecran;
    SDL_Init(SDL_INIT_VIDEO);

    ecran=SDL_SetVideoMode(800, 600, 32, SDL_HWSURFACE | SDL_DOUBLEBUF);

    SDL_WM_SetCaption("PAC MAN ESPRIT 2P4", NULL);
     SDL_WM_SetIcon(SDL_LoadBMP("images.bmp"), NULL);
    SDL_FillRect(ecran, NULL, SDL_MapRGB(ecran->format, 0, 0, 0));
    SDL_Flip(ecran);



    jeux(ecran);


    SDL_Quit();

    return EXIT_SUCCESS;
    SDL_FreeSurface(ecran);
}
